//
//  TIMMessageCountLabel.m
//  Demo_sdk
//
//  Created by Deli Xia on 2018/6/28.
//  Copyright © 2018年 Deli Xia. All rights reserved.
//

#import "TIMMessageCountLabel.h"

@implementation TIMMessageCountLabel

- (id)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        self.backgroundColor = [UIColor redColor];
        self.textAlignment = NSTextAlignmentCenter;
        self.font = [UIFont systemFontOfSize:10];
        self.textColor = UIColor.whiteColor;
    }
    return self;
}

- (void)layoutSubviews{
    [super layoutSubviews];
}

- (void)setMessageCount:(NSInteger)messageCount{
    _messageCount = messageCount;
    self.text =  [NSString stringWithFormat:@"%ld",messageCount];
}

@end
